package com.hbzjjzx.coach.coach.controller;

import com.hbzjjzx.coach.coach.domain.Coach;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloudhbats
 * @description 主教练微服务
 * @author: 周佳佳
 * @create: 2020-01-20 13:11
 **/
@RestController
public class CoachController {


    @GetMapping("coach/{id}")
    public Coach findById(@PathVariable("id") Integer id){
        Coach coach = new Coach();
        coach.setCoachId(1);
        coach.setCoachName("主教练A");
        return coach ;
    }
}
